import Vue from 'vue'
import Vuex from 'vuex'

import createLogger from 'vuex/dist/logger'
import sidebar from './sidebar'
import loginInfo from './loginStatus'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  modules: {
    sidebar,
    loginInfo,
  },
  // strict: debug,
  // plugins: debug ? [createLogger()] : []
})
